﻿#ifndef MSWIDGET_H
#define MSWIDGET_H

#include "msaddmandialog.h"
#include "mseditmandialog.h"
#include "msaddcondialog.h"

#include <QWidget>
#include <QWidget>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QKeyEvent>
#include <QtSql>
#include <QStringList>
#include <QPrinter>

namespace Ui {
class MSwidget;
}

class MSwidget : public QWidget
{
    Q_OBJECT

public:
    explicit MSwidget(QWidget *parent = 0);
    ~MSwidget();
    static int identification;
    void MaterialSend();
    QString MSsaveHtmlToPDF(QString Q);
    void MSSwapTwoRow(int selectRow, int targetRow);
public slots:
    void MSshowdatabase();
    void MSshowcontent(int AID);

private slots:

    void MSshowsort(int clounm);

    void on_MSeditbtn_clicked();

    void on_MSaddbtn_clicked();

    void on_MSseekbtn_clicked();

    void on_MSdeletebtn_clicked();

    void on_SendTW_cellClicked(int row, int column);

    void on_MSaddrelatedbtn_clicked();

    void on_MSdeleterelatedbtn_clicked();

    void on_MSupbtn_clicked();

    void on_MSdownbtn_clicked();

    void on_MSstartCB_clicked();

    void on_MSendCB_clicked();

    void on_MSpreviewbtn_clicked();
signals:
    void sendData(QStringList);
    void sendDat(int,int);
private:
    Ui::MSwidget *ui;
};

#endif // MSWIDGET_H
